if(os_type!=os_windows){
    for(var i=0;i<=4;i++){
        if(device_mouse_check_button_pressed(i,mb_left)){
            touchStart[i]=device_mouse_raw_y(i);
            touchTimer[i]=touchWaitTime;
        }
        if(device_mouse_check_button_released(i,mb_left)){
            if(touchTimer[i]!=-1){
                scrPlayerTouch(i); 
            }
        }
        touchTimer[i]--;
        if(touchTimer[i]==0)
            scrPlayerTouch(i);
    }
}else{
    //pressed
    if(keyboard_check_pressed(vk_up))
        keyUpPressed=true;
    if(keyboard_check_pressed(vk_down))
        keyDownPressed=true;
    if(keyboard_check_pressed(vk_space))
        keyJumpPressed=true;
    //held
    if(keyboard_check(vk_up))
        keyUpHeld=true;
    if(keyboard_check(vk_down))
        keyDownHeld=true;
    if(keyboard_check(vk_space))
        keyJumpHeld=true;
    //released
    if(keyboard_check_released(vk_up))
        keyUpReleased=true;
    if(keyboard_check_released(vk_down))
        keyDownReleased=true;
    if(keyboard_check_released(vk_space))
        keyJumpReleased=true;
}
